package com.lagou.model;

/**
 * 上传结果
 */
public class UploadResult {

    /**
     * 是否成功:true-成功 false-失败
     */
    private boolean success = true;
    /**
     * 消息
     */
    private String message = "ok";
    /**
     * 路径
     */
    private String filePath;
    /**
     * 文件名
     */
    private String fileName;

    public UploadResult() {}

    public UploadResult(boolean success, String message) {
        this.success = success;
        this.message = message;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }
}
